import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex);

const store = new Vuex.Store({
    //将state当做vue中的data属性,
    state : {
        collapse : false
    },
    mutations:{
        edit_collapse(state,collapse) {
            state.collapse = collapse;
        }
    },
    getters:{
        get_collapse(state){
            return state.collapse;
        }
    }
})

export default store